package com.edgclub.edg.api.param;

import android.text.TextUtils;

import com.edgclub.edg.http.param.Params;
import com.edgclub.edg.utils.util.CryptUtil;

import java.util.TreeMap;

/**
 * 获取用户信息的参数
 * 
 * @author 陈坤彬
 *
 */
public class UserParam extends Params {

	private String fromUserId;
	private String toUserId;
	private String page;
	private String pageSize;
	private String username;
	private String password;

	private String sgin;
	private String nick;
	private String province;
	private String city;
	private String district;
	private String sex;
	private String birth;
	private String pwd;
	private String hdLogo;
	private String logo;
	private String width;
	private String height;
	private String verifyCode;
	private String intro;

	private String openId;
	private String types;// 第三方类型,0qq,1微信,2微博

	private String channel;

	private String v;

	private String userId;

	private String code;

	private String phone;
	private String token;
	private String oldPwd;
	private String newPwd;
	private String albumIds;
	private String uid;
	private String target;
	private String msgType;
	private String enable;
	private String oldPhone;
	private String state;

	private String type;
	@Override
	public TreeMap<String, String> getParams() {
		params = simpleParams();

		if (null != oldPhone && !TextUtils.isEmpty(oldPhone)) {
			params.put("oldPhone", oldPhone);
		}
		if (null != enable && !TextUtils.isEmpty(enable)) {
			params.put("enable", enable);
		}
		if (null != msgType && !TextUtils.isEmpty(msgType)) {
			params.put("msgType", msgType);
		}
		if (null != target && !TextUtils.isEmpty(target)) {
			params.put("target", target);
		}
		if (null != uid && !TextUtils.isEmpty(uid)) {
			params.put("uid", uid);
		}
		if (null != intro && !TextUtils.isEmpty(intro)) {
			params.put("intro", intro);
		}
		if (null != albumIds && !TextUtils.isEmpty(albumIds)) {
			params.put("albumIds", albumIds);
		}
		if (null != oldPwd && !TextUtils.isEmpty(oldPwd)) {
			params.put("oldPwd", oldPwd);
		}
		if (null != newPwd && !TextUtils.isEmpty(newPwd)) {
			params.put("newPwd", newPwd);
		}
		if (null != token && !TextUtils.isEmpty(token)) {
			params.put("token", token);
		}
		if (null != code && !TextUtils.isEmpty(code)) {
			params.put("code", code);
		}
		if (null != phone && !TextUtils.isEmpty(phone)) {
			params.put("phone", phone);
		}
		if (null != username && !TextUtils.isEmpty(username)) {
			params.put("username", username);
		}
		if (null != password && !TextUtils.isEmpty(password)) {
			params.put("password", password);
		}
		if (null != page && !TextUtils.isEmpty(page)) {
			params.put("page", page);
		}
		if (null != nick && !TextUtils.isEmpty(nick)) {
			params.put("nick", nick);
		}
		if (null != province && !TextUtils.isEmpty(province)) {
			params.put("province", province);
		}
		if (null != city && !TextUtils.isEmpty(city)) {
			params.put("city", city);
		}
		if (null != district && !TextUtils.isEmpty(district)) {
			params.put("district", district);
		}
		if (null != sex && !TextUtils.isEmpty(sex)) {
			params.put("sex", sex);
		}
		if (null != birth && !TextUtils.isEmpty(birth)) {
			params.put("birth", birth);
		}
		if (null != pwd && !TextUtils.isEmpty(pwd)) {
			params.put("pwd", pwd);
		}
		if (null != hdLogo && !TextUtils.isEmpty(hdLogo)) {
			params.put("hdLogo", hdLogo);
		}
		if (null != logo && !TextUtils.isEmpty(logo)) {
			params.put("logo", logo);
		}
		if (null != width && !TextUtils.isEmpty(width)) {
			params.put("width", width);
		}
		if (null != height && !TextUtils.isEmpty(height)) {
			params.put("height", height);
		}
		if (null != verifyCode && !TextUtils.isEmpty(verifyCode)) {
			params.put("verifyCode", verifyCode);
		}
		if (null != openId && !TextUtils.isEmpty(openId)) {
			params.put("openId", openId);
		}
		if (null != types && !TextUtils.isEmpty(types)) {
			params.put("types", types);
		}
		if (null != channel && !TextUtils.isEmpty(channel)) {
			params.put("channel", channel);
		}
		if (null != v && !TextUtils.isEmpty(v)) {
			params.put("v", v);
		}
		if (null != userId  && !TextUtils.isEmpty(userId )) {
			params.put("userId", userId );
		}
		if (null != pageSize && !TextUtils.isEmpty(pageSize)) {
			params.put("pageSize", pageSize);
		}
		if (null != fromUserId && !TextUtils.isEmpty(fromUserId)) {
			params.put("fromUserId", fromUserId);
		}

		if (null != toUserId && !TextUtils.isEmpty(toUserId)) {
			params.put("toUserId", toUserId);
		}
		if (null != state && !TextUtils.isEmpty(state)) {
			params.put("state", state);
		}

		if (null != type && !TextUtils.isEmpty(type)) {
			params.put("type", type);
		}

		params.put("sign", CryptUtil.md5(convertParam()));
		return params;
	}


	public String getOldPhone() {
		return oldPhone;
	}

	public void setOldPhone(String oldPhone) {
		this.oldPhone = oldPhone;
	}

	public String getMsgType() {
		return msgType;
	}

	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}

	public String getEnable() {
		return enable;
	}

	public void setEnable(String enable) {
		this.enable = enable;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public String getAlbumIds() {
		return albumIds;
	}

	public void setAlbumIds(String albumIds) {
		this.albumIds = albumIds;
	}

	public String getOldPwd() {
		return oldPwd;
	}

	public void setOldPwd(String oldPwd) {
		this.oldPwd = oldPwd;
	}

	public String getNewPwd() {
		return newPwd;
	}

	public void setNewPwd(String newPwd) {
		this.newPwd = newPwd;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getTypes() {
		return types;
	}

	public void setTypes(String types) {
		this.types = types;
	}

	public String getChannel() {
		return channel;
	}

	public void setChannel(String channel) {
		this.channel = channel;
	}

	public String getV() {
		return v;
	}

	public void setV(String v) {
		this.v = v;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}


	public String getNick() {
		return nick;
	}

	public void setNick(String nick) {
		this.nick = nick;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getBirth() {
		return birth;
	}

	public void setBirth(String birth) {
		this.birth = birth;
	}


	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getHdLogo() {
		return hdLogo;
	}

	public void setHdLogo(String hdLogo) {
		this.hdLogo = hdLogo;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getWidth() {
		return width;
	}

	public void setWidth(String width) {
		this.width = width;
	}

	public String getHeight() {
		return height;
	}

	public void setHeight(String height) {
		this.height = height;
	}

	public String getVerifyCode() {
		return verifyCode;
	}

	public void setVerifyCode(String verifyCode) {
		this.verifyCode = verifyCode;
	}
	public String getSgin() {
		return sgin;
	}

	public void setSgin(String sgin) {
		this.sgin = sgin;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getFromUserId() {
		return fromUserId;
	}

	public void setFromUserId(String fromUserId) {
		this.fromUserId = fromUserId;
	}

	public String getToUserId() {
		return toUserId;
	}

	public void setToUserId(String toUserId) {
		this.toUserId = toUserId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getPage() {
		return page;
	}

	public void setPage(String page) {
		this.page = page;
	}

	public String getPageSize() {
		return pageSize;
	}

	public void setPageSize(String pageSize) {
		this.pageSize = pageSize;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
}
